home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Games / Doom / ADoom-0.8 / ADoom_src / test_fixed.c < prev    next >
C/C++ Source or Header  |  1998-06-24  |  336b  |  17 lines

  1. #include <stdio.h>
  2. #include "m_fixed.h"
  3. #include "m_swap.h"
  4.  
  5. int main (void)
  6. {
  7.   fixed_t a, b, c;
  8.  
  9.   a = 0x7fff0000;
  10.   b = 0xffffffff;
  11.   c = FixedDiv (a, b);
  12.   printf ("%08x\n", c);
  13.  
  14.   printf ("%08x %08x %08x %08x\n", (int)SHORT(0x0102), (int)SHORT(0xff01),
  15.                                    (int)SHORT(0x7fff), (int)SHORT(0x8090));
  16. }
  17.